<template>
  <Demo @hello='showHello' msg='hello'>
    <span>占位</span>
    <template v-slot:qwe>
      <div>
        vue3插槽
      </div>
    </template>
  </Demo>
</template>

<script>
import Demo from "./components/Demo.vue";
export default {
  name: 'App',
  components:{
    Demo
  },
  setup() {
    function showHello(value) {
      console.log('App中触发事件：showHello,并收到了参数：',value);
    }
    return {showHello}
  }
}
</script>
